<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<script type="text/javascript">
    
	
	
	
    $(function() 
    		{
    			//问题级别类型
	    		$('#problemLevel_edit').combobox({
	    		    url:'${pageContext.request.contextPath}/problemmgr/problemAction!getDic.action?codeType=warnLevel',  
	    			valueField:'codevalue',  
	    			textField:'codename',
	    			required: true,
	    			value:${problem.problemLevel}
	    	    });
    			
	    		//问题级别类型
	    		$('#problemOrigin_edit').combobox({
	    		    url:'${pageContext.request.contextPath}/problemmgr/problemAction!getDic.action?codeType=requireSrc',  
	    			valueField:'codevalue',  
	    			textField:'codename',
	    			required: true,
	    			value:${problem.problemOrigin}
	    	    });
	    		
	    		//加载处理人数据
	    		$('#handler_edit').combogrid({   
	    			delay: 500,
	    			panelWidth:200,
	    			mode: 'remote',   
	    			url: '${pageContext.request.contextPath}/problemmgr/problemAction!showHandler.action',   
	    			idField: 'userid',   
	    			textField: 'username',  
	    			value:${problem.handler},
	    			columns: [[   
	    			      {field:'userid',title:'指标ID',width:50,sortable:true,align:'center'},   
	    			      {field:'username',title:'指标名称',width:85,align:'center'}
	    			]],
	    			onSelect:function(value,rowData,rowIndex){
	    				$("#handler_add").val(rowData.userid);
	    				
	    		    }
	    		});  
	    		
    	     });		
		
</script>
 <div> 
 	<form id="problem_edit_form" method="post">
 	<input id="problemId" name="problemId" class="easyui-validatebox" style="width:150px;display: none" value="${problem.problemId}"/>
	 	<table border="0" cellpadding="0" cellspacing="0" height="100%"  width="100%" class="table">
		    <tr>
		      <td height="28px">问题主题：&nbsp;</td>
		      <td height="28px"><input type="text" id="title_edit" name="title" class="easyui-validatebox" data-options="required:true,missingMessage:'问题主题必须填写'" style="width:150px;" value="${problem.title}"/></td>
		      <td height="28px">关键字：&nbsp;</td>
		      <td height="28px"><input id="keyWord_edit" name="keyWord" class="easyui-validatebox" style="width:150px;" value="${problem.keyWord}"/></td>
		     </tr>
		     
		     <tr>
		      <td height="28px">问题级别:&nbsp;</td>
		      <td height="28px">
		      	 <input id="problemLevel_edit" class="easyui-combobox"  name="problemLevel" style="width:150px;" panelHeight="auto"/>
		      </td> 
		      <td height="28px">问题来源:&nbsp;</td>
		      <td height="28px">
		      	 <input id="problemOrigin_edit" class="easyui-combobox"  name="problemOrigin" style="width:150px;" value="${problem.problemOrigin}"/>
		      </td>
		     </tr>
		     <tr>
		      <td height="28px">关联对象:&nbsp;</td>
		      <td height="28px">
		      	 <input id="relaObject_edit" class="easyui-validatebox"  name="relaObject" style="width:150px;" value="${problem.relaObject}"/>
		      </td> 
		      <td height="28px">处理人:&nbsp;</td>
		      <td height="28px">
		      	 <input id="handler_edit" class="easyui-validatebox" data-options="required:true,missingMessage:'处理人必须填写'"  name="handler" style="width:150px;" value="${problem.handler}"/>
		      </td> 
		     </tr>
		    
		      <tr>
		     	<td height="28px">问题描述:&nbsp;</td>
		        <td colspan="3" height="28px">
		      	  <textarea id="problemDesc_edit" name="problemDesc" class="easyui-validatebox" data-options="required:true,missingMessage:'问题描述必须填写'" style="width:90%;height:60px;resize:none">${problem.problemDesc}</textarea>
		        </td>
		     </tr>
	    </table>
 	</form>
 </div>